import layoutIndex from '@/views/layout.index.vue'

export const routes = [
	{
		path: '/',
		name: 'index',
		component: () => import('@/views/index/index.vue'),
	},
	{
		path: '/login',
		name: 'login',
		component: () => import('@/views/index/login.vue'),
	},
	{
		path: '/home',
		name: 'home',
		component: layoutIndex,
		children: [
			{
				path: '/home',
				name: 'home',
				component: () => import('@/views/index/home.vue')
			}
		]
	}, {
		path: '/config',
		name: 'config',
		component: layoutIndex,
		children: [
			{
				path: '/config',
				name: 'config',
				component: () => import('@/views/index/config.vue')
			}
		]
	}, {
		path: '/article',
		name: 'article',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'articleList',
				component: () => import('@/views/article/list.vue')
			},
			{
				path: 'category/list',
				name: 'articleCategoryList',
				component: () => import('@/views/article/category/list.vue')
			}
		]
	}, {
		path: '/banner',
		name: 'banner',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'bannerList',
				component: () => import('@/views/banner/list.vue')
			}
		]
	}, {
		path: '/category',
		name: 'category',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'categoryList',
				component: () => import('@/views/category/list.vue')
			}
		]
	}, {
		path: '/role',
		name: 'role',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'roleList',
				component: () => import('@/views/role/list.vue')
			}
		]
	}, {
		path: '/user',
		name: 'user',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'userList',
				component: () => import('@/views/user/list.vue')
			}
		]
	}, {
		path: '/log',
		name: 'log',
		component: layoutIndex,
		children: [
			{
				path: 'moneylog',
				name: 'moneylog',
				component: () => import('@/views/moneylog/list.vue')
			}, {
				path: 'tixianlog',
				name: 'tixianlog',
				component: () => import('@/views/tixian/list.vue')
			}, {
				path: 'userlog',
				name: 'userlog',
				component: () => import('@/views/user/loglist.vue')
			}, {
				path: 'paylog',
				name: 'paylog',
				component: () => import('@/views/paylog/list.vue')
			}
		]
	}, {
		path: '/mch',
		name: 'mch',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'mchList',
				component: () => import('@/views/mch/list.vue')
			}
		]
	}, {
		path: '/nav',
		name: 'nav',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'navList',
				component: () => import('@/views/nav/list.vue')
			}
		]
	},
	{
		path: '/vmoneylog',
		name: 'vmoneylog',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'vmoneylogList',
				component: () => import('@/views/vmoneylog/list.vue')
			}
		]
	},
	{
		path: '/charge_options',
		name: 'charge_options',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'charge_optionsList',
				component: () => import('@/views/charge_options/list.vue')
			}
		]
	}, {
		path: '/charge_order',
		name: 'charge_order',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'charge_orderList',
				component: () => import('@/views/charge_order/list.vue')
			}
		]
	}, {
		path: '/opera',
		name: 'opera',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'operaList',
				component: () => import('@/views/opera/list.vue')
			}
		]
	}, {
		path: '/opera_collection',
		name: 'opera_collection',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'opera_collectionList',
				component: () => import('@/views/opera_collection/list.vue')
			}
		]
	}, {
		path: '/tixian',
		name: 'tixian',
		component: layoutIndex,
		children: [
			{
				path: 'list',
				name: 'tixianList',
				component: () => import('@/views/tixian/list.vue')
			}
		]
	}
]
